﻿using CommunityToolkit.Mvvm.ComponentModel;
using GameView.Comment;

namespace GameView.Services.Dtos.RechargesDto
{
    /// <summary>
    /// 商人充值记录表
    /// </summary>
    public partial class RechargeToMerchantEntity : ObservableObject
    {
        [ObservableProperty]
        private string _remark = string.Empty;

        /// <summary>
        /// 充值前余额
        /// </summary>
        [ObservableProperty]
        public int _beforeBalance = 0;

        /// <summary>
        /// 充值后余额
        /// </summary>
        [ObservableProperty]
        public int _afterBalance = 0;

        [ObservableProperty]
        private bool _isSelected;

        [ObservableProperty]
        private int _id;

        [ObservableProperty]
        private string _orderNumber = string.Empty;

        [ObservableProperty]
        private string _projectName = string.Empty;

        [ObservableProperty]
        private string _createdTime = string.Empty;

        [ObservableProperty]
        private int _rechargeOrderStatus = 3004;

        public string RechargeOrderStatusDisplay => RechargeOrderStatus.GetDisplay();

        [ObservableProperty]
        private string _merchantName = string.Empty;

        [ObservableProperty]
        private string _sendName = string.Empty;

        /// <summary>
        /// 调整类型，4001：增加；4002. 扣除
        /// </summary>
        [ObservableProperty]
        private int _changeType = 4001;

        public string ChangeTypeDisplay => ChangeType.GetDisplay();

        [ObservableProperty]
        private uint _rechargeAmount;
    }
}